<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Student(name, id, sex){
            this.name = name;
            this.id = id;
            this.sex = sex;
            this.sayHi = function(){
                console.log('你好我是' +this.name);
            }
        }
            var stu = new Student('刘露雨',2001034090, '女');
            stu.sayHi();
    </script>
</body>
</html>